function name() {
	return "Each With Array";
}

function execute() {
	var result = context.result = [];

	panda.render("test", function($) {
		$.each(["a", "b"], function(k, v){
			result.push(k);
			result.push(v);
			result.push(this);
		});
	});
}

function verify() {
	var result = context.result;

	Assert.assertEquals(6, result.length, 0);

	Assert.assertEquals(0, result[0], 0);
	Assert.assertEquals("a", result[1]);
	Assert.assertEquals("a", result[2].valueOf());

	Assert.assertEquals(1, result[3], 0);
	Assert.assertEquals("b", result[4]);
	Assert.assertEquals("b", result[5].valueOf());
}
